﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QuanLyTienDien
{
    public partial class QuanLy : Form
    {
        public QuanLy()
        {
            InitializeComponent();
        }

        private void btnKH_Click(object sender, EventArgs e)
        {
            KhachHang kh = new KhachHang();
            kh.Show();
        }

        private void btnTien_Click(object sender, EventArgs e)
        {
            BienLai bl = new BienLai();
            bl.Show();
        }

        private void btnBL_Click(object sender, EventArgs e)
        {
            BienLai bl = new BienLai();
            bl.Show();
        }
        private void btnThoat_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show("Bạn có chắc chắn muốn thoát không?", "Thoát", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question) == DialogResult.Yes)
            {
                Close();//thoát
                System.Windows.Forms.Application.Exit();//thoát cả chương trình
            }
        }

        
    }
}
